package tests;

import logic.Teacher;

import org.junit.*;
import static org.junit.Assert.*;

/**
 * The class <code>TeacherTest</code> contains tests for the class <code>{@link Teacher}</code>.
 *
 
 * @author Cesar
 */
public class TeacherTest {
	/**
	 * Run the Teacher(String,String,String,String,String) constructor test.
	 *
	 * @throws Exception
	 *
	 
	 */
	@Test
	public void testTeacher_1()
		throws Exception {
		String firstName = "";
		String lastName = "";
		String email = "";
		String password = "";
		String sala = "";

		Teacher result = new Teacher(firstName, lastName, email, password, sala);

		
		assertNotNull(result);
		assertEquals("User [firstName=, lastName=, email=, password=]Teacher [sala=]", result.toString());
		assertEquals("", result.getSala());
		assertEquals("", result.getFirstName());
		assertEquals("", result.getPassword());
		assertEquals("", result.getEmail());
		assertEquals("", result.getLastName());
	}

	/**
	 * Run the String getSala() method test.
	 *
	 * @throws Exception
	 *
	 
	 */
	@Test
	public void testGetSala_1()
		throws Exception {
		Teacher fixture = new Teacher("", "", "", "", "");

		String result = fixture.getSala();

		
		assertEquals("", result);
	}

	/**
	 * Run the void setSala(String) method test.
	 *
	 * @throws Exception
	 *
	 
	 */
	@Test
	public void testSetSala_1()
		throws Exception {
		Teacher fixture = new Teacher("", "", "", "", "");
		String sala = "";

		fixture.setSala(sala);

		
	}

	/**
	 * Run the String toString() method test.
	 *
	 * @throws Exception
	 *
	 
	 */
	@Test
	public void testToString_1()
		throws Exception {
		Teacher fixture = new Teacher("", "", "", "", "");

		String result = fixture.toString();

		
		assertEquals("User [firstName=, lastName=, email=, password=]Teacher [sala=]", result);
	}

	public static void main(String[] args) {
		new org.junit.runner.JUnitCore().run(TeacherTest.class);
	}
}